import request from '@/utils/request'


// 绑定用户
export function boundUser(data) {
    return request({
      url: '/system/user/bindUser',
      method: 'post',
      data: data
    })
}

// 获取绑定用户信息
export function getBoundUser() {
    return request({
      url: '/system/user/getBindUser',
      method: 'get'
    })
}

// 待收款列表
export function reiceveList(params) {
  return request({
    url: '/boot/walletTransfer/userList',
    method: 'get',
    params: params
  })
}
// 收款确认
export function transferReceive(id) {
  return request({
    url: '/boot/walletTransfer/transferReceive/'+ id,
    method: 'post'
  })
}

// 转账列表
export function walletTransList(params) {
  return request({
    url: '/boot/walletRechargeCash/listUser',
    method: 'get',
    params: params
  })
}

// 提现列表
export function walletRechargeList(params) {
  return request({
    url: '/boot/walletRechargeCash/list',
    method: 'get',
    params: params
  })
}

// 提现通过
export function rechargeConfirm(id) {
  return request({
    url: '/boot/walletRechargeCash/confirmRecharge/' + id,
    method: 'post'
  })
}

// 提现驳回
export function rechargeRefuse(data) {
  return request({
    url: '/boot/walletRechargeCash/refuseRecharge',
    method: 'post',
    data: data
  })
}

// 上分列表
export function gameUpList(params) {
  return request({
    url: '/boot/walletTransfer/userListAll',
    method: 'get',
    params: params
  })
}

// 新增充值
export function createRecharge(data) {
  return request({
    url: '/boot/walletRechargeCash/createRecharge',
    method: 'post',
    data: data
  })
}
// 获取二维码地址
export function getWalletCode(params) {
  return request({
    url: '/boot/wallet/getInfo',
    method: 'get',
    params: params
  })
}
// 获取余额
export function getWalletBalance(params) {
  return request({
    url: '/boot/wallet/getBalance',
    method: 'get',
    params: params
  })
}
//充值确认
export function confirmRecharge(id) {
  return request({
    url: '/boot/walletRechargeCash/confirmRecharge/'+ id,
    method: 'post'
  })
}
//充值驳回
export function refuseRecharge(data) {
  return request({
    url: '/boot/walletRechargeCash/refuseRecharge',
    method: 'post',
    data: data
  })
}